package com.matt.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.matt.commons.model.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Describle This Class Is 模板主表
 * @Author ZengMin
 * @Date 2018/12/19 11:54
 * @Company Matt
 */
@Entity
@Table(name = "teaching_templete")
@Data
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" })
public class TeachingTemplete extends Model {

    @Column(columnDefinition = "datetime COMMENT '创建时间'")
    private Date created = new Date();

    @Column(columnDefinition = "bit(1) default 0 COMMENT '是否禁用'")
    private boolean deleted = false;

    @Column(columnDefinition = "varchar(50) COMMENT '模板名称'")
    private String templeteName;

    @Column(columnDefinition = "varchar(10) COMMENT '创建人名称'")
    private String createStaffName;

    @Column(columnDefinition = "varchar(32) COMMENT '创建人ID'")
    private String createStaffId;

    @Column(columnDefinition = "varchar(50) COMMENT '备注'")
    private String remark;

    @Transient
    private List<TeachingTempleteDetail> teachingTempleteDetail;

    @Transient
    private Map<String,Object> templeteDetail;

    @Transient
    private Integer execType;

}
